package xzl.edu.cn.set;

public class Rectangle {
	private double width;
	private double height;
	private String color;

	public Rectangle() {
	}; 

	public Rectangle(double width, double height, String color) { // 构造函数
		this.width = width;
		this.height = height;
		this.color = color;
	}

	public void setWidth(double width) {
		this.width = width;
	}

	public void setHeight(double height) {
		this.height = height;
	}

	public void setColor(String color) {
		this.color = color;
	}

	double getWidth() {
		return width;
	}

	double getHeight() {
		return height;
	}

	String getColor() {
		return color;
	}

	double fingArea() {
		return width * height;
	}

	double findPerimeter() {
		return 2 * (height + width);
	}

}
